﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace _0812045
{
    public class OnePicSprite : BaseSprite
    {
        public OnePicSprite(Texture2D[] _inputtexture2d)
        {
            texture2d = _inputtexture2d;
            itexture2d = 10;
            _x = 0;
            _y = 0;
        }
        private int _loai = 0;

        public int loai
        {
            get { return _loai; }
            set { _loai = value; }
        } 

        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(texture2d[0], new Rectangle((int)_x, (int)_y, 80, 50), new Rectangle(_itexture2d * 80,_loai * 50, 80, 50), Color.White);
        }
    }
}
